<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改jiaowuOnline')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-onlineWeb-edit" th:object="${onlineWeb}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">实验名称：</label>
                <div class="col-sm-8">
                    <input name="webName" th:field="*{webName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属课程：</label>
                <div class="col-sm-8">
                    <select name="courseId" id="courseId" style="width:476px;height: 34px;">
                        <option value=" ">请选择</option>
                        <option th:each="list : ${courseList}" th:value="${list.id}" th:text="${list.courseName}" th:field="*{courseId}"></option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实验对应网址：</label>
                <div class="col-sm-8">
                    <input name="webInter" th:field="*{webInter}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "jiaowuOnline/onlineWeb";
        $("#form-onlineWeb-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-onlineWeb-edit').serialize());
            }
        }
    </script>
</body>
</html>